A Pakistani court has stayed the demolition of a 200-year-old Hindu temple in the old area of the city.